<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script> 
			function clickMe() {
				var input = document.getElementById("inputId");
				var value = input.value;
				console.log(value);
				alert(value);
				
			}
		</script>
	</head>
	<body>
		<input id="inputId" type="text"  /><br/>
		<button onclick="clickMe()">点我</button>
	</body>
</html>
